<?php
//子类>trait> 父类
//trait  
trait BB{
    public function b2(){
        echo"BB-> b2";
    }
    public function b333(){
        echo"BB-> b333";
    }
}
class Base{
    public function b333(){
        echo"Base-> b333";
    }
}
class Point extends Base{
use BB;
public function b2(){
    echo"Point-> b2";
}
 
}
$p=new Point();
$p->b2();
$p->b333();
